package com.tanhua.model.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.lang.annotation.Documented;

/**
 * @Description: test
 * @Create by: JJ菜菜
 * @Date: 2021/11/30 23:43
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
@Document
public class Persion {
    @Id
    private ObjectId id;
    @Field("username")
    private String name;
    private int age;
    private String address;
}
